
import {
    PieChart,
  NotFound,Video,Article,ItemHref,SkillNum,Tools,
  ListHisItem,ListDevTools,ListHomeArcicle,ListHomeVoide,ListSkill
} from '../pages';


export const mainRouter = [
    {
        pathname:'/404',
        component:NotFound
     },
]
export const adminRouter = [
    {
        pathname:'/admin/piechart',
        title:'等待开发',
        routerName:['数据分析'],
        icon:'pie-chart',
        isNav:true,
        component:PieChart,
    } ,
    {
        pathname:'/admin/list',
        title:'资源列表',
        routerName:['资源列表'],
        icon:'database',
        isNav:true,
        children:[
            {
                pathname:'/admin/list/video',
                title:'视频',
                routerName:['资源列表','视频'],
                icon:'video-camera',
                exact:true,
                component:ListHomeVoide,
            },
            {
                pathname:'/admin/list/article',
                title:'文章',
                routerName:['资源列表','文章'],
                icon:'read',
                exact:true,
                component:ListHomeArcicle,
            },
            {
                pathname:'/admin/list/itemHref',
                title:'历史项目',
                routerName:['资源列表','历史项目'],
                icon:'folder-add',
                exact:true,
                component:ListHisItem,
            },
            {
                pathname:'/admin/list/devTools',
                title:'开发工具',
                routerName:['资源列表','开发工具'],
                icon:'shopping',
                exact:true,
                component:ListDevTools,
            },
            {
                pathname:'/admin/list/skill',
                title:'技能',
                routerName:['资源列表','技能'],
                icon:'thunderbolt',
                exact:true,
                component:ListSkill,
            },
        ],
    } ,
    {
        pathname:'/admin/home',
        title:'首页',
        routerName:['首页'],
        icon:'home',
        isNav:true,
        children:[
            {
                pathname:'/admin/home/video',
                title:'视频',
                routerName:['首页','视频'],
                icon:'video-camera',
                exact:true,
                component:Video,
            },
            {
                pathname:'/admin/home/article',
                title:'文章',
                routerName:['首页','文章'],
                icon:'read',
                exact:true,
                component:Article
            },
        ]
    },
    {
        pathname:'/admin/hisItem',
        title:'历史项目',
        routerName:['历史项目'],
        icon:'reconciliation',
        isNav:true,
        children:[
            {
                pathname:'/admin/hisItem/item',
                title:'项目',
                routerName:['历史项目','项目'],
                icon:'folder-add',
                exact:true,
                component:ItemHref,
            },
        ]
    },
    {
        pathname:'/admin/devTools',
        title:'开发工具',
        routerName:['开发工具'],
        icon:'code-sandbox-circle',
        isNav:true,
        children:[
             {
            pathname:'/admin/devTools/Tools',
            title:'工具',
            routerName:['开发工具','工具'],
            icon:'shopping',
            exact:true,
            component:Tools,
             },
    ]
    },
    {
        pathname:'/admin/skill',
        title:'技能',
        routerName:['技能'],
        icon:'tool',
        isNav:true,
        children:[
            {
                pathname:'/admin/skill/num',
                title:'技能数量',
                routerName:['历史项目','技能数量'],
                icon:'thunderbolt',
                exact:true,
                component:SkillNum,
            },
        ],
       
    }
]